home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form FrmPerCntSample2
- Appearance = 0 'Flat
- BorderStyle = 3 'Fixed Dialog
- Caption = "PerCnt - Simple Sample"
- ClientHeight = 3195
- ClientLeft = 2100
- ClientTop = 4545
- ClientWidth = 3510
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0C0&
- Height = 3600
- Left = 2040
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3195
- ScaleWidth = 3510
- Top = 4200
- Width = 3630
- Begin VB.HScrollBar HScroll1
- Height = 255
- Left = 240
- Max = 100
- TabIndex = 2
- Top = 2640
- Width = 3015
- End
- Begin VB.CommandButton Command2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Down"
- Height = 375
- Left = 1800
- TabIndex = 1
- Top = 2160
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Up"
- Height = 375
- Left = 240
- TabIndex = 0
- Top = 2160
- Width = 1455
- End
- Begin PercntLibCtl.Percnt Percent1
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 1560
- Width = 3015
- _Version = 196608
- _ExtentX = 5318
- _ExtentY = 661
- _StockProps = 77
- ForeColor = -2147483630
- Percent = 0
- BevelOuter = 1
- BevelBar = 0
- BevelWidthBar = 1
- TextBackColor = -2147483633
- TextForeColor = -2147483630
- BorderWidth = 1
- BevelInner = 3
- Caption = ""
- BevelWidthOuter = 1
- BevelWidthInner = 1
- End
- Begin VB.Label Label1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = $"percnts2.frx":0000
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 9.75
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Left = 240
- TabIndex = 3
- Top = 240
- Width = 3015
- End
- Attribute VB_Name = "FrmPerCntSample2"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim I, J As Integer
- J = HScroll1.Value
- For I = J To 100
- DoEvents
- Percent1.Percent = I
- HScroll1.Value = I
- Next I
- End Sub
- Private Sub Command2_Click()
- Dim I, J As Integer
- J = HScroll1.Value
- For I = J To 0 Step -1
- DoEvents
- Percent1.Percent = I
- HScroll1.Value = I
- Next I
- End Sub
- Private Sub HScroll1_Change()
- Percent1.Percent = HScroll1.Value
- End Sub
- Private Sub HScroll1_Scroll()
- Percent1.Percent = HScroll1.Value
- End Sub
-